<?php
defined('BASEPATH') OR exit('No direct script access allowed');
?><!DOCTYPE html><html lang="en">
	<head>
		<!--加载header文件-->
		<?php
		include_once 'public/views/header.php';
		include_once 'public/home/html/alert.php';
		?>
		<?php 
		include_once 'public/home/html/select.php';
		?>
		<link rel="stylesheet" href="public/css/list.css" />
		<link rel="stylesheet" href="public/xr/xrablecs "/>
		<script src="public/xr/xrablejs"></script>
		<script src="public/js/list.js"></script>
		<script src="public/home/js/function.js"></script>		
		<style>
			.content{
				margin: 5%;
			}

		</style>
	</head>
	<body>
		<input type="hidden" id="url" value="<?php base_url() ?>">
		<input type="hidden" id='start_time' value="<?php echo $start_time;?>">
		<input type="hidden" id='end_time' value="<?php echo $end_time;?>">
		<input type="hidden" id='dept_id' value="<?php echo $dept_id;?>">

		<!-- <div class='content'>
			<div>
				<h3>（一）<?php echo $start_time.'至'.$end_time?> 校督导听课情况 </h3>
				<h4>1.整体评价情况</h4>
				<?php echo $start_time.'至'.$end_time.'，'.$CountSchoolSupervisor; ?>名校督导<?php if($table1show!=''){echo '中除了'.$table1show.'，';} ?>督导听课共 <?php echo $CountSchoolSupervisorSum ?>次。教学水平总体评价平均 <?php echo $teaching_level_score_avg ?>分，90分及以上<?php echo $teaching_level_A ?>人，占<?php echo $teaching_level_Aavg ?>%，80分以下<?php echo $teaching_level_B ?>人，占<?php echo $teaching_level_Bavg ?>%；教学效果总体评价平均<?php echo $teaching_effect_score_avg ?>分，90分及以上<?php echo $teaching_effect_A ?>人，占<?php echo $teaching_effect_Aavg ?>%，80分以下<?php echo $teaching_effect_B ?>人，占<?php echo $teaching_effect_Bavg ?>%；
				<h4>2.教师教学准备、开展情况 </h4>
				被校督导听课的教师整体较好，教师无迟到或早退<?php echo $noLateEarly; ?>人，教学资料不齐全<?php echo $unCourseware+$unHandout; ?>人（其中无<?php echo TeachingReadiness::Fifth[XPHEnum::Caption]?>的<?php echo $unCourseware; ?>人，无<?php echo TeachingReadiness::Sixth[XPHEnum::Caption]?>的<?php echo $unHandout; ?>人），教学进度与授课计划基本保持一致，教师都能站姿教学，便于掌握学生上课情况，教师都有适当的互动，课堂环境卫生情况整体较好，课堂设施设备完好。<?php if($havequestionTwo){echo '但也有以下问题： ';} ?>无板书<?php echo $noblackboard; ?>人；坐姿为主教学<?php echo $siteteaching; ?>人；
				<h3>3.学生常态</h3>
				本周期校督导听课，学生整体按时到课率普遍较高，课堂较有秩序。<?php if($havequestionThree){echo '但也有以下问题： ';} ?><?php if($student_sleep){echo '个别课堂上有学生低头睡觉；';} ?><?php if($student_lateorleave){echo '个别课堂上有学生迟到、早退；';} ?>
				<?php if($student_playphone){echo '课堂上学生玩手机现象仍普遍出现。';} ?>
				<h3>4.听课意见与建议</h3>
				<?php if($advice!=''){echo $advice;} ?>
			</div>
		
			<div>
				<h3>（二）<?php echo $start_time.'至'.$end_time?>各分院（部）督导听课情况</h3>
				<h4>1.<?php echo $start_time.'至'.$end_time?>听课整体情况</h4>
				<?php echo $start_time.'至'.$end_time; ?>，分院（部）教学督导员听课共达人<?php echo $CountSchoolSupervisor1;?>人次，平均分<?php echo $total_avg;?>分。被听课人总共<?php echo $listend_sum;?>人，90分以下的为<?php echo $UnitSupervisor_B;?>人，占<?php echo $UnitSupervisor_Bpercent;?>%（<?php echo $downdetp;?>分院的老师比较多）最低分<?php echo $UnitSupervisor_Minavg;?>分（<?php echo $UnitSupervisor_Mindept;?>分院<?php echo $UnitSupervisor_Minteacher;?>老师），95分以上有<?php echo $UnitSupervisor_S;?>人占<?php echo $UnitSupervisor_Spercent;?>% （<?php echo $Updetp;?>分院的比较多）。 
				<h4>2.<?php echo $start_time.'至'.$end_time?>督导听课成绩分析 </h4>
				各分院<?php echo $start_time.'至'.$end_time?>累计听课共<?php echo $listend_sum;?>人，<?php echo $CountSchoolSupervisorSum1;?>人次，平均分<?php echo $total_avg;?>。<?php echo $UnitSupervisor_A;?>位老师（<?php echo $UnitSupervisor_Apercent;?>%）成绩在90分以上，<?php echo $UnitSupervisor_C;?>人（<?php echo $UnitSupervisor_Cpercent;?>%）老师成绩在85分以下。从各分院的听课情况看，<?php echo $max_avg_dept;?>分院分值整体比较高。
				
			</div>			
		</div> -->
	</body>
	<script>
		$(function(){
			addDialogButton("导出",Export);
		})
		var Export=function(){				
			var start_time=$("#start_time").val();
			var end_time=$('#end_time').val();
			var dept_id=$('#dept_id').val();		
			var msg = "请确认是否导出?";
		    swal({
		        title: "请确认",
		        text: msg,
		        type: "warning",
		        showCancelButton: true,
		        closeOnConfirm: true,
		        confirmButtonText: "确定",
		        cancelButtonText: '取消',
		        confirmButtonColor: "#ec6c62"
		    }, function(isConfirm) {
		        if(isConfirm) {
		            var load_alert=loadAlert('数据导出中，请稍后...');
		            $.ajax({
		                type: "post",
		                url: "Admin/StatisticsAttend/showDetail/"+dept_id+"/"+start_time+"/"+end_time+"/1",
		                async: true,
		                dataType:'json',
		                success: function(data) {
		                    closeAlert(load_alert);
		                    if(data.status) {
		                        location.href=getRootPath()+'/'+data.v;
		                    } else {
		                        window.parent.topMessagePrompt('error',ret.msg);
		                    }
		                }
		            });
		        }
		    });
		}
	</script>
</html>